home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 101 / CD-ROM 101.iso / compl / maya5ple / Install_MayaPLE5_English.exe / Maya / Data1.cab / artAttrSkinValues.mel < prev    next >
Encoding:
Text File  |  2003-07-17  |  3.1 KB  |  104 lines

  1. // Copyright (C) 1997-2002 Alias|Wavefront,
  2. // a division of Silicon Graphics Limited.
  3. //
  4. // The information in this file is provided for the exclusive use of the
  5. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  6. // and incorporate this code into other products for purposes authorized
  7. // by the Alias|Wavefront license agreement, without fee.
  8. //
  9. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  10. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  11. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  12. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  13. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  14. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. // PERFORMANCE OF THIS SOFTWARE.
  16. //
  17. //
  18. //  Alias|Wavefront Script File
  19. //  MODIFY THIS AT YOUR OWN RISK
  20. //
  21. //  Creation Date:  June 2000
  22. //  Author:         alipka 
  23. //
  24. //  Description:
  25. //      Option tool property window for Artisan tools
  26. //
  27. //
  28. //  Procedure Name:
  29. //      artSelectValues
  30. //
  31. //  Description:
  32. //      Initialize the option values.
  33. //
  34. //  Input Arguments:
  35. //
  36. //  Return Value:
  37. //      None.
  38. //
  39.  
  40. global string $artSkinCurrentInfluence = "";
  41.  
  42. global proc artSkinPaintValues( 
  43.     string     $artCommand,
  44.     string    $currTool
  45. )
  46. //
  47. //    Paint Skin Weights tool values.
  48. //
  49. {
  50.     // RSE Moved the call to artSkinProperties as fix for bug 157707 and 187493
  51.     // Moved the callback setting up code to artSkinCallback.mel for skinPaintSortRadio
  52.  
  53.     // Fill in the popMenu and set the current selection.
  54.     // artAttrSkinJointMenu( "skinClusterInflList", $artCommand );
  55.  
  56.     radioButtonGrp -e -sl `optionVar -q sortSkinPaintList` skinPaintSortRadio;
  57.     
  58.     // Common Attribute Paint UI.
  59.     artAttrCommonValues( $artCommand, $currTool );
  60. }
  61.  
  62. // =======================================================
  63. // Main callback procedure for Paint Selecion tool.
  64. // =======================================================
  65. global proc artAttrSkinValues(
  66.     string     $toolName
  67. )
  68. {
  69.     source "artisanCallback.mel";
  70.     source "artisanValues.mel";
  71.  
  72.     source "artAttrValues.mel";
  73.  
  74.     string     $artCommand     = "artAttrCtx";
  75.     string    $currContext = `currentCtx`;
  76.     string    $currTool     = `contextInfo -c $currContext`;
  77.  
  78.     // Provide a different icon for different attribute tools.
  79.     string $icon    = "paintSkinWeights.xpm";
  80.     string $helpTag = "PaintSkinWeightsTool";
  81.  
  82.     string $parent = (`toolPropertyWindow -q -location` + "|artAttrSkin");
  83.     setParent $parent;
  84.  
  85.     toolPropertySetCommon $toolName $icon $helpTag;
  86.  
  87.     // Brush frameLayout values.
  88.     artisanBrushValues( $artCommand, $currTool );
  89.  
  90.     // Skin Paint Weights frameLayout values.
  91.        artSkinPaintValues( $artCommand, $currTool );
  92.  
  93.     // Stroke frameLayout values.
  94.     artisanStrokeValues( $artCommand, $currTool );
  95.  
  96.     // Stylus Pressure frameLayout values.
  97.     artisanPressureValues( $artCommand, $currTool );
  98.  
  99.     // Display frameLayout values.
  100.     artisanDisplayValues( $artCommand, $currTool );
  101.  
  102.     toolPropertySelect artAttrSkin;
  103. }
  104.